package cn.lili.modules.order.order.entity.enums;

public enum RankingAwardStatusEnum {

    //排名奖品状态: 1,待领取 2,待发货(已领取) 3,已发货
    WAIT_RECEIVE(1, "待领取"),
    WAIT_DELIVER(2, "待发货"),
    HAS_DELIVER(3, "已发货");

    public Integer code;
    public String name;

    RankingAwardStatusEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public static String getByCode(Integer code) {
        RankingAwardStatusEnum[] awards = values();
        RankingAwardStatusEnum[] var3 = awards;
        int var4 = awards.length;

        for (int var5 = 0; var5 < var4; ++var5) {
            RankingAwardStatusEnum actionEnumEnum = var3[var5];
            if (actionEnumEnum.code == code) {
                return actionEnumEnum.name;
            }
        }
        return null;
    }
}
